package com.ruoyi.client.mapper;

import com.ruoyi.bookbus.domain.BookAddress;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ClientAddressMapper")
public interface AddressMapper {
    // 增
    int insert(BookAddress address);

    // 删
    int deleteByPrimaryKey(Long id);

    // 改
    int update(BookAddress address);

    // 查
    BookAddress selectByPrimaryKey(Long id);
    BookAddress selectDefaultByUserId(Long userId);
    List<BookAddress> selectListByUserId(Long userId);

}